<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
      //Map方法
      let map=new Map([
         ["张三","16"],
         ["李四","17"],
         ["王五","24"],
      ]);
   let a=map.set("张三","49");
   console.log(map);
   let b=map.get("张三");
   console.log(b);
   console.log(map.has("李四"));
   console.log(map.delete("李四"));
   console.log(map);
   map.clear()
   console.log(map);
    </script>
</body>
</html>